/**
 * Copyright (c) 2008, Gaudenz Alder
 */
package com.mxgraph.swing.view;

import java.util.EventObject;

/**
 * The interface Mx i cell editor.
 */
public interface mxICellEditor {

    /**
     * Returns the cell that is currently being edited.
     *
     * @return the editing cell
     */
    public Object getEditingCell();

    /**
     * Starts editing the given cell.
     *
     * @param cell    the cell
     * @param trigger the trigger
     */
    public void startEditing(Object cell, EventObject trigger);

    /**
     * Stops the current editing.
     *
     * @param cancel the cancel
     */
    public void stopEditing(boolean cancel);

}
